package foodmaterial.entity;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

public class CustomerPriceTemplate implements Serializable {

    private static final long serialVersionUID = -6826442120375595981L;

    private Long id ;
    @NotEmpty(message = "价格模板名称不能为空")
    private String name ;
    @Size(min= 1,message = "价格模板最少有一条明细")
    @Valid
    private List<CustomerPriceTemplateDetail> detail ;
    private Boolean originalProcess ;
    private Integer pageNo ;
    private Integer pageSize ;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<CustomerPriceTemplateDetail> getDetail() {
        return detail;
    }

    public void setDetail(List<CustomerPriceTemplateDetail> detail) {
        this.detail = detail;
    }

    public Boolean getOriginalProcess() {
        return originalProcess;
    }

    public void setOriginalProcess(Boolean originalProcess) {
        this.originalProcess = originalProcess;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
